package com.ruge.api.foundations;

import com.ruge.api.foundations.dto.response.ServeAggregationResDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * description: ServeApi
 * create time at 2024/4/23 21:40
 *
 * @author alice.ruge
 * @since 0.0.3
 */

@FeignClient(contextId = "ruge-foundations", value = "ruge-foundations", path = "/foundations/inner/serve")
public interface ServeApi {

    @GetMapping("/{id}")
    ServeAggregationResDTO findById(@PathVariable("id") Long id);

}
